<template>
    <div class="container">
       <Parent></Parent>
    </div>
</template>

<script>
/**
 * 跨级组件之间的传值的步骤
 * 1、在发送方定义provide选项 
 */
import Parent from './views/Parent.vue'
export default {
    components:{
        Parent
    },
    provide:{
        appKey:'来自爷爷的信息'
    }
}
</script>

<style>
    .container{
        display: flex;
        width: 300px;
        height: 300px;
        justify-content: center;
        align-items: center;
        background: tomato;
    }
</style>